package com.done.util.converter;

import org.apache.commons.beanutils.Converter;

public final class StringConverter implements Converter {

    public StringConverter() {
    }

    public Object convert(Class type, Object value) {
        if ((value == null) || "".equals(value.toString())) {
            return null;
        } else {
            return value.toString();
        }
    }
}
